package com.itheima.demo;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/11 19:05
 */
public class Demo_Store002 {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.setProperty("123", "123");
        prop.setProperty("456", "456");
        prop.setProperty("789", "789");
        prop.setProperty("987", "987");
        FileWriter fw = new FileWriter("demo_properties\\pop1.properties");
        prop.store(fw, "1111111");
        fw.close();
    }
}
